import Mock from 'mockjs'
// post
if(JSON.parse(import.meta.env.VITE_BASE_MOCK))
{
    Mock.mock('/api/login', 'post', function (options) {
    console.log('mock接收到到参数为：', options)
      return {
        code: 200,
        data:{
        myInfo:{
            "Id": 1,
            "Name": "Alice",
            "OnlineState": true,
            "Mobile": "123-456-7890",
            "NickName": "Ali",
            "Avatar": "https://example.com/avatar1.png"
        },
        token:"token"
      }
    }
  })
}

  